#include <cstdio>

int main()
{
	char a, b, c, d, e;
	scanf("%c%c%c%c%c", &a, &b, &c, &d, &e);
	printf("%c%c%c%c%c\n",e, d, c, b, a);
	
	return 0;
}
